import request from '@/utils/request'

// 查询会员奖品列表
export function listMemberTrainAward(query) {
  return request({
    url: '/member/memberTrainAward/list',
    method: 'get',
    params: query
  })
}

// 查询会员奖品详细
export function getMemberTrainAward(id) {
  return request({
    url: '/member/memberTrainAward/' + id,
    method: 'get'
  })
}

// 新增会员奖品
export function addMemberTrainAward(data) {
  return request({
    url: '/member/memberTrainAward',
    method: 'post',
    data: data
  })
}

// 修改会员奖品
export function updateMemberTrainAward(data) {
  return request({
    url: '/member/memberTrainAward',
    method: 'put',
    data: data
  })
}

// 删除会员奖品
export function delMemberTrainAward(id) {
  return request({
    url: '/member/memberTrainAward/' + id,
    method: 'delete'
  })
}
